<html>
<head>
    <meta charset="UTF-8">
    <title>户学教育</title>
    <meta name="keywords" content="户学教育">
    <meta name="Description" content="户学教育"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,  user-scalable=0"/>
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/idangerous.swiper.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/common.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/mine.css?t={time()}.{rand(10000,9999999)}"/>


    <script src="{HOME_THEME_PATH}../gw/js/jquery.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript"t src="{THEME_PATH}js/dialog-plus.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{THEME_PATH}js/jquery.artDialog.js?t={time()}.{rand(10000,9999999)}&skin=default"></script>
    <script type="text/javascript" src="{THEME_PATH}js/dayrui.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{HOME_THEME_PATH}../gw/js/le_include_head.js?t={time()}.{rand(10000,9999999)}"></script>
    <link rel="icon" href="{HOME_THEME_PATH}../gw/img/f-logo.png" type="image/png" sizes="16x16">
    <script name="baidu-koubei-verification" src="//ikoubei.baidu.com/embed/58ea9664cf897d52f78ec69fff1379d6"></script>

</head>
<body>
<div class="main">
    <!-- 头部 -->
    {template "../gw/common.html"}
    <div class="part part1">
        <div class="part-cont">
            <!-- 目录 -->
            <div class="menu-items pay-item">
                <a class="menu-item" href="{dr_user_url('home/index')}">个人中心</a>
                <a class="menu-item le-my-order active" href="{dr_user_url('pay/myorder')}">我的订单</a>
                 <a class="menu-item" href="{dr_user_url('pay/electivecenter')}">选课中心</a>
                <a class="menu-item" href="{dr_user_url('pay/changepassword')}">修改密码</a>
            </div>
            <!-- 内容 -->
            <div class="cont-items pay-select">
                <!-- &lt;!&ndash; 我的订单 &ndash;&gt; -->
                <div class="cont-item count-order" style="display: block;">
                    <!-- 订单页面标题 -->
                    <div class="cont4-title">
                        <div class="cont4-main-title wechat-pay">我的订单 - 选择支付方式</div>
                    </div>
                    <!-- &lt;!&ndash; 订单内容 &ndash;&gt;-->
                    <div class="cont4-conts" style="height: 650px;padding-top:40px;">
                        <div class="cont4-cont active">
                            <div class="pay-title">
                                <div class="pay-success-word">订单提交成功，请选择支付方式，尽快完成支付!订单号:</div>
                                <div class="pay-order-num">{$orders['order_no']}</div>
                            </div>
                            <div class="pay-box">
                                <div class="pay-wechat-check">
                                    <div class="pay-box-title-message">
                                        <div class="order-check alipay-click"></div>
                                        <div class="pay-image alipay"></div>
                                    </div>
                                    <div class="pay-money">
                                        <div class="pay-title">支付:</div>
                                        <div class="pay-total-money price">{$orders['totalprice']}</div>
                                        <div class="pay-mark">元</div>
                                    </div>
                                </div>
                                <div class="pay-alipay-check">
                                </div>
                            </div>
                            <div class="pay-box">
                                <div class="pay-wechat-check">
                                    <div class="pay-box-title-message">
                                        <div class="order-check wechat-click"></div>
                                        <div class="pay-image wechat"></div>
                                    </div>
                                    <div class="pay-money">
                                        <div class="pay-title">支付:</div>
                                        <div class="pay-total-money price">{$orders['totalprice']}</div>
                                        <div class="pay-mark">元</div>
                                    </div>
                                </div>
                                <div class="pay-alipay-check">
                                </div>
                            </div>
                            <div class="pay-box">
                                <div class="pay-wechat-check">
                                    <div class="pay-box-title-message">
                                        <div class="order-check libraries_install"></div>
                                        <div class="pay-image cool"></div>
                                    </div>
                                    <div class="pay-money">
                                        <div class="pay-title">支付:</div>
                                        <div class="pay-total-money price">{$orders['totalprice']}</div>
                                        <div class="pay-mark">元</div>
                                    </div>
                                </div>
                                <div class="pay-alipay-check">
                                </div>
                            </div>

                            <div class="pay-box">
                                <div class="pay-wechat-check">
                                    <div class="pay-box-title-message">
                                        <div class="order-check haimi-click"></div>
                                        <div class="pay-image haimi">海米分期</div>
                                    </div>
                                    <div class="pay-money">
                                        <div class="pay-title">支付:</div>
                                        <div class="pay-total-money price">{$orders['totalprice']}</div>
                                        <div class="pay-mark">元</div>
                                    </div>
                                </div>
                                <div class="pay-alipay-check">
                                </div>
                            </div>
                            <div class="pay-btn">确认支付</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 页尾 -->
    {template "../gw/footer.html"}
    </div>
    <div class="slide-box">
        <div class="slide-box-wrap">
            <div class="foo-box">
                <div id="foo"></div>
            </div>
        </div>
    </div>
    </body>
    <script>
        $(function(){
            var select_flag = false;
            $(".order-check").click(function(){
                $(".order-check").removeClass("select");
                if(select_flag){
                    $(this).addClass("select");
                }else{
                    $(this).addClass("select");
                }
            });

            $(".pay-btn").click(function() {
                if ($("body").find(".select").length > 1) {
                    return false;
                }
                if ($("body").find(".select").length < 2) {
                    if($(".wechat-click").hasClass("select")){
                        $(".pay-btn").text("正在跳转微信支付页面...").css("background","rgb(189, 189, 189)").css("font-size","16px");
                        setTimeout('window.location.href="'+"{dr_user_url('pay/index',array('oid'=>$orders['id']))}"+'"',1000);
                    }
                    if($(".alipay-click").hasClass('select')){
                        $(".pay-btn").text("正在跳转支付宝页面...").css("background","rgb(189, 189, 189)").css("font-size","16px");
                        setTimeout('window.location.href="'+"{dr_user_url('pay/zfbpay',array('oid'=>$orders['id']))}"+'"',1000);
                    }
                    if($(".libraries_install").hasClass("select")){
                        // if ({$orders['totalprice']}<600) {
                        //     alert('信用卡分期金额不能低于600元');
                        //     return false;
                        // }
                        $(".pay-btn").text("正在跳转信用卡页面...").css("background","rgb(189, 189, 189)").css("font-size","16px");
                        setTimeout('window.location.href="'+"{dr_user_url('PayCool/library_stage',array('oid'=>$orders['id']))}"+'"',1000);
                    }
                    if($(".haimi-click").hasClass("select")){
                        $(".pay-btn").text("正在跳转海米订单页面...").css("background","rgb(189, 189, 189)").css("font-size","16px");
                        setTimeout('window.location.href="'+"{dr_user_url('PayHaimi/haimipay',array('oid'=>$orders['id']))}"+'"',1000);
                    }
                    //alert("请选择支付方式");
                    return false;
                }
            });


        });
    </script>
    <script src="{HOME_THEME_PATH}../gw/js/idangerous.swiper.min.js?t={time()}.{rand(10000,9999999)}"></script>
<!--<script src="{HOME_THEME_PATH}../gw/js/area.js?t={time()}.{rand(10000,9999999)}"></script>-->
<!--<script src="{HOME_THEME_PATH}../gw/js/alloy-crop.js?t={time()}.{rand(10000,9999999)}"></script>-->
    <script src="{HOME_THEME_PATH}../gw/js/lrz.mobile.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/mine.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/iscroll.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/unlock.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/jquery.slideunlock.min.js?t={time()}.{rand(10000,9999999)}"></script>
</html>